import Vue from 'vue';
import Router from 'vue-router';
import Default from '@/components/Default';
import Home from '@/views/Home';
import PublicList from '@/views/PublicList';
import Test from '@/views/Test';
import Qrcode from '@/views/Qrcode';
import ReadHistory from '@/views/ReadHistory';
import BookSave from '@/views/BookSave';

Vue.use(Router);

export default new Router({
  mode: 'hash',
  routes: [
    // {
    //   path: '/default',
    //   name: 'Default',
    //   component: Default
    // },
    // {
    //   path: '/',
    //   name: 'Home',
    //   component: Home
    // },
    // {
    //   path: '/',
    //   name: 'Publiclist',
    //   component: PublicList
    // },
    // {
    //   path: '/test',
    //   name: 'Test',
    //   component: Test
    // },
    // {
    //   path: '/qrcode',
    //   name: 'Qrcode',
    //   component: Qrcode
    // },
    // {
    //   path: '/',
    //   name: 'Home',
    //   component: Home
    // },
    {
      path: '/readhistory',
      name: 'readhistory',
      component: ReadHistory
    },
    {
      path: '/booksave',
      name: 'booksave',
      component: BookSave
    }
  ]
})
